package com.gdcp.beans;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * @author 杨华京
 * @version 1.0
 * @description
 * @since 1.8
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class User {

    private Integer id;
    private String username;
    private String password;
    private String email;
    private String phone;
    private String question;
    private String answer;
    private Integer role;
    private Date createTime;
    private Date updateTime;
    private String image;
    private Integer shop_id;
    private List<Role> roles;

    public List<Role> getRoles(){
        return roles;
    }
}
